package model.dao;

import java.util.List;

import model.entity.Photo;

public interface PhotoDaoLocal extends GenericDaoLocal<Photo, Integer> {
	public List<Photo> searchTitleOrDescription(String title);
	public List<Photo> searchDimensions(int dimension,boolean greater);
	public List<Photo> searchRate(double rate,boolean greater);
	public int removePhotoAlbums(Integer photoId);
	public int removePhotoFavorites(Integer photoId,Integer albumId);
	public List<Photo> firstNGlobal(Integer amount);
}
